package com.neuedu.my12306.service.impl;

import java.util.List;

import com.neuedu.my12306.dao.ITicketInforDao;
import com.neuedu.my12306.dao.impl.ITicketInforDaoImpl;
import com.neuedu.my12306.entity.TicketInfo;
import com.neuedu.my12306.service.ITicketInforService;

public class ITicketInfoServiceImpl implements ITicketInforService {
	private ITicketInforDao ticketInfoDao = null;
	public ITicketInfoServiceImpl() {
		this.ticketInfoDao = new ITicketInforDaoImpl();
	}


	@Override
	public int findTotal() {
		
		return ticketInfoDao.findTotal();
	}


	@Override
	public boolean reg(TicketInfo ticketInfo) {
		// TODO Auto-generated method stub
		return ticketInfoDao.reg(ticketInfo);
	}

	@Override
	public List<TicketInfo> findTicketInfos(int page, int size) {
	
		return ticketInfoDao.findTicketInfos(page, size);
	}


	@Override
	public boolean deleteByIds(int[] ids) {
		return ticketInfoDao.deleteByIds(ids);
	}


	@Override
	public TicketInfo findTicketInfoById(int id) {
		
		return ticketInfoDao.findTicketInfoById(id);
	}


	@Override
	public boolean editTicketInfo(TicketInfo ticketInfo) {
		
		return ticketInfoDao.editTicketInfo(ticketInfo);
	}

}
